package org.example.java_chatroom.model;

import java.sql.Timestamp;

/**
 * @Author @fiber-cloud
 * @Date 2025/11/7 21:23
 */


public class AddFriendRequest {
    private int requestId;
    private int fromUserId;
    private int toUserId;
    private String fromUserName;
    private String reason;
    private String status;
    private Timestamp createTime;

    // 构造器
    public AddFriendRequest() {}

    public AddFriendRequest(int fromUserId, int toUserId, String reason) {
        this.fromUserId = fromUserId;
        this.toUserId = toUserId;
        this.reason = reason;
        this.status = "pending";
    }

    // Getter 和 Setter 方法
    public int getRequestId() {
        return requestId;
    }

    public void setRequestId(int requestId) {
        this.requestId = requestId;
    }

    public int getFromUserId() {
        return fromUserId;
    }

    public void setFromUserId(int fromUserId) {
        this.fromUserId = fromUserId;
    }

    public int getToUserId() {
        return toUserId;
    }

    public void setToUserId(int toUserId) {
        this.toUserId = toUserId;
    }

    public String getFromUserName() {
        return fromUserName;
    }

    public void setFromUserName(String fromUserName) {
        this.fromUserName = fromUserName;
    }

    public String getReason() {
        return reason;
    }

    public void setReason(String reason) {
        this.reason = reason;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public Timestamp getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Timestamp createTime) {
        this.createTime = createTime;
    }
}